﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace SimpleMVC.Models
{
    public class Teacher
    {
        [Required]
        public string Name { set; get; }

        [Range(0,100)]
        public int Age { set; get; }
    }
}